﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace kpi.KpiUserManager
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User.IsInRole("master") || User.Identity.Name.Equals("穆鏊"))
            {
                Label_NavigationLink.Text = "<br />";
                Label_NavigationLink.Text += "<ul>";
                Label_NavigationLink.Text += "<li><a href=\"KpiUserMgr.aspx\">账户管理</a></li>";
                Label_NavigationLink.Text += "<li><a href=\"UserRolesMgr.aspx\">账户组管理</a></li>";
                Label_NavigationLink.Text += "<li><a href=\"KpiInfoMgr.aspx\">KPI信息管理</a></li>";
                Label_NavigationLink.Text += "<li><a href=\"_TempInsertUserKpiInfo.aspx\">批量插入临时KPI信息</a></li>";
                Label_NavigationLink.Text += "<li><a href=\"UserManagersMgr.aspx\">批量插入对应关系</a></li>";
                Label_NavigationLink.Text += "</ul>";
                Label_NavigationLink.Visible = true;
            }
            else if (User.IsInRole("u_manager"))
            {
                Label_NavigationLink.Text = "<br />";
                Label_NavigationLink.Text += "<ul>";
                //Label_NavigationLink.Text += "<li><a href=\"KpiUserMgr.aspx\">账户管理</a></li>";
                //Label_NavigationLink.Text += "<li><a href=\"UserRolesMgr.aspx\">账户组管理</a></li>";
                
                //u_manager用户组不允许使用该功能
                //Label_NavigationLink.Text += "<li><a href=\"KpiInfoMgr.aspx\">KPI信息管理</a></li>";
                
                //Label_NavigationLink.Text += "<li><a href=\"_TempInsertUserKpiInfo.aspx\">批量插入临时KPI信息</a></li>";
                //Label_NavigationLink.Text += "<li><a href=\"UserManagersMgr.aspx\">批量插入对应关系</a></li>";
                Label_NavigationLink.Text += "</ul>";
                Label_NavigationLink.Visible = true;
            }
        }
    }
}